@extends('admin.layout.main')

@section('content')
    <div class="breadcrumbs ace-save-state" id="breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <i class="ace-icon fa fa-home home-icon"></i>
                <a href="#">首页</a>
            </li>
            <li class="active"><a href="">常用操作</a></li>
            <li class="active"><a href="{{ url('admin/slide_list') }}">幻灯片列表</a></li>
        </ul><!-- /.breadcrumb -->

        <div class="nav-search" id="nav-search">
            <form class="form-search">
		<span class="input-icon">
		<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
			<i class="ace-icon fa fa-search nav-search-icon"></i>
		</span>
            </form>
        </div><!-- /.nav-search -->
    </div>

    <div class="page-content">
        <div class="row">
            <div class="col-xs-12">
                <div class="row left">
                    <h3>
                    </h3>
                </div>
                <!-- PAGE CONTENT BEGINS -->
                <div class="row">
                    <div class="col-xs-12">
                        <div class="clearfix">
                            <div class="pull-right tableTools-container"></div>
                        </div>
                        <div class="table-header">
                            <a href="{{ url('admin/add_slide_info') }}"><i class="menu-icon fa fa-plus orange"></i>
                                <span class="menu-text orange"> 添加幻灯片 </span></a>

                            {{--<span class="menu-text orange"> 验证码记录 </span>--}}
                        </div>

                        <!-- div.table-responsive -->

                        <!-- div.dataTables_borderWrap -->
                        <div>
                            <table id="dynamic-table" class="table table-striped table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th>图片</th>
                                    <th>网址</th>
                                    <th class="hidden-480">
                                        标题
                                    </th>
                                    <th>
                                        排序
                                    </th>
                                    <th class="hidden-480">更新时间</th>
                                    <th>操作</th>
                                </tr>
                                </thead>

                                <tbody>
                                @foreach($result as $key=>$val)
                                    <tr>
                                        <td><img src="{{$val->img}}" style="height: 75px; "></td>
                                        <td>{{$val->webpage}}</td>
                                        <td class="hidden-480">
                                            {{$val->title}}
                                        </td>
                                        <td>{{$val->order}}</td>
                                        <td class="hidden-480">
                                            {{$val->updated_at}}
                                        </td>
                                        <td>
                                            <a href="/admin/editor_slide?id={{$val['id']}}">
                                                <button class="btn btn-xs btn-info">
													<i class="ace-icon fa fa-pencil bigger-120">修改</i>
												</button>
                                            </a>
                                            &nbsp;
                                            <a href="/admin/del_slide?id={{$val['id']}}">
                                                <button class="btn btn-xs btn-danger">
													<i class="ace-icon fa fa-trash-o bigger-120">删除</i>
												</button>
                                            </a>
                                        </td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <!-- PAGE CONTENT ENDS -->
            </div><!-- /.col -->

            <div class="modal-footer no-margin-top">
                <ul class="pagination pull-right no-margin">
                    {{--{{$result->links()}}--}}
                </ul>
            </div>
        </div><!-- /.row -->
    </div><!-- /.page-content -->

@endsection
